V2EX  ›  英汉词典

Bitwise Operator

定义 Definition

bitwise operator:位运算符。用于对整数的二进制位(bit)逐位进行操作的运算符,常见于编程语言(如 C/C++、Java、Python 等),包括按位与、按位或、按位异或、按位取反、左移、右移等。(不同语言的符号与规则可能略有差异)

发音 Pronunciation

/ˈbɪtˌwaɪz ˈɑːpəˌreɪtər/

例句 Examples

Use a bitwise operator to set this flag.
用位运算符把这个标志位设置为 1。

In C, bitwise operators like & and | are often used to manipulate permission bits efficiently without extra memory.
在 C 语言中,像 &| 这样的位运算符常用于高效地操作权限位,而不需要额外的内存。

词源 Etymology

bitwisebit(比特,二进制的最小单位)+ -wise(表示“以……方式/按……方向”)构成,字面意思是“按比特的方式(逐位地)”。operator 来自拉丁语 operari(工作、操作),在数学与编程语境中指“执行某种运算的符号/机制”。合起来即“逐位进行操作的运算符”。

相关词 Related Words

文学与典籍作品 Literary Works

  • The C Programming Language(Kernighan & Ritchie):介绍并使用 & | ^ ~ << >> 等位运算符处理底层数据与位掩码。
  • C Programming: A Modern Approach(K. N. King):在整数表示与位操作章节系统讲解位运算符的用法与常见陷阱。
  • Computer Systems: A Programmer’s Perspective(Bryant & O’Hallaron):在“数据表示/位级运算”相关部分大量使用位运算符来解释底层计算与优化思路。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1863 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 11:17 · PVG 19:17 · LAX 03:17 · JFK 06:17
♥ Do have faith in what you're doing.